package com.example.hotelsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author Lee
 * @since 2020-10-14
 */
@Data
@ApiModel(value="Checkin对象", description="")
public class Checkin implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "入住编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "城市id")
    private Long cityId;

    @ApiModelProperty(value = "酒店id")
    private Long hotelId;

    @ApiModelProperty(value = "房间号")
    private Long roomNum;

    @ApiModelProperty(value = "入住人数")
    private Long peoples;

    @ApiModelProperty(value = "入住人身份证")
    private String userIdcard;

    @ApiModelProperty(value = "入住人姓名")
    private String userRealname;

    @ApiModelProperty(value = "入住时间")
    private Date inTime;

    @ApiModelProperty(value = "操作人id")
    private Long operatorId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "酒店名称")
    @TableField(exist = false)
    private String hotelName;

    @ApiModelProperty(value = "城市名称")
    @TableField(exist = false)
    private String cityName;
}
